<%@ page language="java" pageEncoding="UTF-8"%>
<%@include file="/common/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="/addressbook/js/jquery2.js"></script>
<title>商品</title>
</head>
<body>

<s:form action="auction" theme="simple">
	商品名称：<s:textfield id="queryName" name="queryName" ></s:textfield>
	<s:hidden name="isQuery" value="1"></s:hidden>
	<button type="submit" onclick="return clientValidate();">查询</button>
	共搜索出<s:property value="searchResults"/>条结果，用时<s:property value="useTime"/>秒
</s:form>

<table border="1">
	<tr>
	<td>ID</td>
	<td>名称</td>
	<td>拼音</td>
	<td>备注</td>
	</tr>
<s:iterator value="%{auctions}">
	<tr>
	<td><s:property value="id"/> </td>
	<td><s:property value="name"/> </td>
	<td><s:property value="pinYinName"/> </td>
	<td><s:property value="remarks"/></td>
	</tr>
</s:iterator>
</table>
</body>   
<script type="text/javascript">   
	function clientValidate(){
		var value = $("#queryName").val();
		if($.trim(value) == ""){
			alert("请输入查询条件");
			return false;
		}
		return true;
	}
</script>  
</html>   
  
